package com.example.security1.service.impl;

import com.example.security1.entity.Role;
import com.example.security1.dao.RoleDao;
import com.example.security1.service.RoleService;
import org.springframework.stereotype.Service;


import javax.annotation.Resource;
import java.util.List;

/**
 * (Role)表服务实现类
 *
 * @author makejava
 * @since 2023-07-13 18:41:56
 */
@Service("roleService")
public class RoleServiceImpl implements RoleService {
    @Resource
    private RoleDao roleDao;

    @Override
        public List<Role> select(){
        return roleDao.query();
    }
    @Override
    public Role queryByname(String name){
        return roleDao.queryByname(name);
    }
}
